package com.start.client.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.start.client.app.entity.ClientAppEntity;
import com.start.client.app.mappers.ClientAppMapper;
import com.start.client.app.service.ClientAppService;
import org.springframework.stereotype.Service;


@Service
public class ClientAppServiceImpl extends ServiceImpl<ClientAppMapper, ClientAppEntity> implements ClientAppService {


    @Override
    public ClientAppEntity getByAppId(String appId) {
        LambdaQueryWrapper<ClientAppEntity> lambdaQueryWrapper=new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(ClientAppEntity::getAppId,appId);
        return getOne(lambdaQueryWrapper,false);
    }
}
